package com.wfcm.service.impl;

import com.wfcm.entity.MemberGift;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfcm.dao.WfMemberDao;
import com.wfcm.entity.WfMemberEntity;
import com.wfcm.service.WfMemberService;



@Service("wfMemberService")
public class WfMemberServiceImpl implements WfMemberService {
	@Autowired
	private WfMemberDao wfMemberDao;
	
	@Override
	public WfMemberEntity queryObject(Integer userid){
		return wfMemberDao.queryObject(userid);
	}


	public void addStudyTime(Map<String, Object> map) {
		wfMemberDao.addStudyTime(map);
	}

	@Override
	public WfMemberEntity queryWx(Integer userid){
		return wfMemberDao.queryWx(userid);
	}

	@Override
	public WfMemberEntity queryByMobile(String mobile){
		return wfMemberDao.queryByMobile(mobile);
	}
	
	@Override
	public List<WfMemberEntity> queryList(Map<String, Object> map){
		return wfMemberDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return wfMemberDao.queryTotal(map);
	}
	
	@Override
	public void save(WfMemberEntity wfMember){
		wfMemberDao.save(wfMember);
	}
	
	@Override
	public void update(WfMemberEntity wfMember){
		wfMemberDao.update(wfMember);
	}

	@Override
	public void updateStudyTime(WfMemberEntity wfMember){
		wfMemberDao.updateStudyTime(wfMember);
	}
	
	@Override
	public void delete(Integer userid){
		wfMemberDao.delete(userid);
	}
	
	@Override
	public void deleteBatch(Integer[] userids){
		wfMemberDao.deleteBatch(userids);
	}

	@Override
	public Integer addGift(MemberGift memberGift) {
		return wfMemberDao.addGift(memberGift);
	}

	@Override
	public Integer updateGift(Integer id) {
		return wfMemberDao.updateGift(id);
	}

	@Override
	public List<MemberGift> searchGift(String telephone) {
		return wfMemberDao.searchGift(telephone);
	}

	@Override
	public WfMemberEntity queryByIdentity(String tokenId) {
		// TODO Auto-generated method stub
		return wfMemberDao.queryByIdentity(tokenId);
	}

	@Override
	public WfMemberEntity queryByOpenid(String Openid) {
		// TODO Auto-generated method stub
		return wfMemberDao.queryByOpenid(Openid);
	}


	
}
